src1=bagTicket_v1.cc
des1=bagTicket_v1.exe
src2=bagTicket_v2.cc
des2=bagTicket_v2.exe

.PHONY:all
all:$(des1) $(des2)

$(des1):$(src1)
	@g++ $^ -o $@ -std=c++11
	@echo "compile $^ to $@!"
$(des2):$(src2)
	@g++ $^ -o $@ -std=c++11
	@echo "compile $^ to $@!"

.PHONY:clean
clean:
	rm -rf $(des1) $(des2)